package com.zk.yygh.hosp.repository;

import com.zk.yygh.model.hosp.Department;
import com.zk.yygh.model.hosp.Schedule;
import org.springframework.data.domain.Example;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author: 张凯
 * @date: 2022/6/6 - 10:49
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    //其模板查询要对应实体类的变量类型
    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date workDate);
}
